<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>history</title>
</head>
<body>
    <button id="q1">前往1</button>
    <button id="q2">前往2</button>
    <script>
        var q1=document.getElementById('q1');
        var q2=document.getElementById('q2');
        q1.onclick=function(){
            location='history1.html'
        }
        q2.onclick=function(){
            location='history2.html'
        }
    </script>
</body>
</html>